public class Solution1450 {
    public int busyStudent(int[] startTime, int[] endTime, int queryTime) {
        int ans=0;
        for (int i=0;i<startTime.length;i++){
            if (queryTime>=startTime[i] && queryTime<=endTime[i]){
                ans++;
            }
        }
        return ans;
    }

    public static void main(String[] args) {
        System.out.println(new Solution1450().busyStudent(new int[]{1,2,3},new int[]{3,2,7},4));
    }
}
